package com.gzu.ltms.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;

/**
 * 动态运费计算规则 实体类。
 *
 * @author mm
 * @since 2025-05-06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "freight_rule")
public class FreightRule implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 规则id
     */
    @Id(keyType = KeyType.Auto)
    private Long ruleId;

    /**
     * 最小重量
     */
    private Long minWeight;

    /**
     * 最大重量
     */
    private Long maxWeight;

    /**
     * 每公斤价格
     */
    private Long unitPrice;

    /**
     * 距离系数
     */
    private Long distanceFactor;

}
